<template>
  <div class="leftList">
    <el-row class="tac">
      <el-col :span="24">
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
        >
          <el-menu-item index="1">
            <i class="el-icon-menu" />
            <span slot="title">帐号管理</span>
          </el-menu-item>
          <el-submenu index="2">
            <template slot="title">
              <span class="el-icon-location" />
              <span>导航二</span>
            </template>
            <el-menu-item-group>
              <template slot="title">分组一</template>
              <el-menu-item index="1-1">选项1</el-menu-item>
              <el-menu-item index="1-2">选项2</el-menu-item>
            </el-menu-item-group>
            <el-menu-item-group title="分组2">
              <el-menu-item index="1-3">选项3</el-menu-item>
            </el-menu-item-group>
            <el-submenu index="1-4">
              <template slot="title">选项4</template>
              <el-menu-item index="1-4-1">选项1</el-menu-item>
            </el-submenu>
          </el-submenu>
          <el-menu-item index="3">
            <i class="el-icon-setting" />
            <span slot="title">导航三</span>
          </el-menu-item>
        </el-menu>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'LeftList'
}
</script>

<style lang='stylus' scoped>
@import '~@/assets/styles/varibles.styl'
  .leftList >>> .el-menu
    height 100%
    // background $bgColor
  .leftList >>> .el-col
    height 100%
  // .el-menu-item:focus, .el-menu-item:hover
  //   color $bgColor
  // .el-menu-item.is-active
  //   background #ecf5ff
  //   color $bgColor !important
  // .el-menu-item,
  // .leftList >>> .el-menu-item i,
  // .leftList >>>,
  // .el-submenu__title i
  //   color #fff
  // .leftList >>> .el-submenu__title
  //   color #fff
  .leftList
    width 220px
    height 100%
    .tac
      height 100%
</style>
